﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyOCR.Picture
{
    class PictureFactory
    {
        public static PictureHandle createPicture(string operate)
        {
            PictureHandle picture = null;
            switch (operate)
            {
                case "百度":
                    picture = new BaiDu_PictureHandleOCR();
                    break;
                case "腾讯":
                    picture = new TengXun_PictureHandleOCR();
                    break;
                case "有道":
                    picture = new YouDao_PictureHandleOCR();
                    break;
                case "搜狗":
                    picture = new SouGo_PictureHandleOCR();
                    break;
                default:
                    break;
            }

            return picture;
        }
    }
}
